<!DOCTYPE html>
<html class="no-js" lang="zh_CN">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
    <title>浏览报表 - $!biReport.name</title>
    #required_css
</head>
<body>#loading

<div class="app $!layout">
    <!-- 头部菜单 -->#header
    <section class="layout">
        <!-- 菜单 -->#sidebar
        <!-- 内容主体 -->
        <section class="container">
            <section class="main-content">
                <!-- 主体操作栏 -->
                <!--<header class="header navbar shadow">-->
                    <!--&lt;!&ndash; 左按钮区 &ndash;&gt;-->
                    <!--<div class="toolbar">-->
                        <!--<button class="btn btn-default toolbar-item" onclick="render()">重新渲染</button>-->
                    <!--</div>-->
                <!--</header>-->
                <div class="content-wrap">
                    <div class="wrapper bg-default">
                        <div class="row">
                            <div class="col-lg-8 col-lg-offset-2">
                                <div class="panel">
                                    <div class="panel-body">
                                        $!biReport.content
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <a class="exit-offscreen"></a>
            </section>
        </section>
    </section>
</div>
#required_js
<script src="$!basePath/app/datasource/datasource.js"></script>
<script src="$!basePath/app/report/bi.table.js"></script>
<script src="$!basePath/app/report/bi.report.js"></script>
<script src="$!basePath/app/report/bi.report.formula.js"></script>
<script type="text/javascript">
    function render() {
        var id = "$!biReport.id";
        var report = new BiReport({
            target : $("#"+id)
        });
        report.render();
//        report.renderFormual();
    }

    ns.ready(function(){
        render();
    });
</script>
#loading_close
</body>

</html>